org.neo4j.graphdb.traversal
Interface PruneEvaluator
public interface PruneEvaluator
An evaluator which can "cut off" relationships so that they will not be
traversed in the ongoing traversal. For any given position a prune evaluator
can decide whether or not to prune whatever is beyond (i.e. after) that
position or not.
|
Method Summary |
boolean |
pruneAfter(Path position)
Decides whether or not to prune after position. |
NONE
static final PruneEvaluator NONE
- Default
PruneEvaluator, does not prune any parts of the
traversal.
pruneAfter
boolean pruneAfter(Path position)
- Decides whether or not to prune after
position. If true
is returned the position won't be expanded and traversals won't be made
beyond that position.
- Parameters:
position - the position to decide whether or not to
prune after.
- Returns:
- whether or not to prune after
position.
Copyright © 2010 Neo4j. All Rights Reserved.